package fit.acmetelecom;
import static com.acmetelecom.customer.CustomerBuilder.aCustomerNamed;
import fit.ColumnFixture;
import fit.Parse;


public class GivenTheCustomers extends ColumnFixture {
	public String Name;
	public String Number;
	public String PricePlan;
	
	@Override
	public void doRows(Parse rows) {
		AcmeTelecomFitSystem.customers.clear();
		super.doRows(rows);
	}
	
	@Override
	public void reset() throws Exception {
		Name      = null;
		Number    = null;
		PricePlan = null;
		super.reset();
	}
	
	@Override
	public void execute() throws Exception {
		AcmeTelecomFitSystem.customers.add(aCustomerNamed(Name).
				withPhoneNo(Number).withThePricePlan(PricePlan));
		super.execute();
	}
}
